package com.superteam.zzl.view;

import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.superteam.zzl.activity.R;
import com.superteam.zzl.activity.databinding.DynamicfragmentLayoutBinding;

/**
 * Created by zhang on 2017/1/6.
 * 动态
 */

public class MainDynamicFragment extends BaseFragment {

    private DynamicfragmentLayoutBinding dyn;
    public static MainDynamicFragment getInstance(String type) {
        Bundle bundle = new Bundle();
        bundle.putString("type",type);
        MainDynamicFragment fragment = new MainDynamicFragment();
        fragment.setArguments(bundle);
        return fragment;
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        dyn = DataBindingUtil.inflate(inflater,R.layout.dynamicfragment_layout,container,false);
        return dyn.getRoot();
    }

}
